package com.examination.mlib.utils;

public class LoginThenRouterUtils {
    public static LoginThenRouterUtils utils = null;
    private RouterBean bean;

    private LoginThenRouterUtils() {
    }

    public static LoginThenRouterUtils getInstance() {
        if (utils == null) {
            synchronized (LoginThenRouterUtils.class) {
                if (utils == null) {
                    utils = new LoginThenRouterUtils();
                }
            }
        }
        return utils;
    }

    public RouterBean getBean() {
        return bean;
    }

    public void setBean(RouterBean bean) {
        this.bean = bean;
    }


    public static class RouterBean {
        public static final int TYPE_QUALIFY = 1;
        //        首页订单跳转
        public static final int TYPE_ORDER = 2;
        //首页问诊跳转
        public static final int TYPE_ASK = 3;
        //首页医生跳转
        public static final int TYPE_DOCTOR = 4;
        //首页处方跳转
        public static final int TYPE_PRESCRIPTION = 5;
        //首页banner
        public static final int TYPE_BANNER = 6;
        public static final int TYPE_IM = 7;
        public static final int TYPE_CART = 8;
        public static final int TYPE_MINE = 9;
        public static final int TYPE_FOLLOW = 10;
        private int type = -1;
        private String pluginId = "";
        private String componentName = "";
        private Object params = null;

        public RouterBean() {
        }

        public RouterBean(int type, String pluginId, String componentName, Object params) {
            this.type = type;
            this.pluginId = pluginId;
            this.componentName = componentName;
            this.params = params;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getPluginId() {
            return pluginId;
        }

        public void setPluginId(String pluginId) {
            this.pluginId = pluginId;
        }

        public String getComponentName() {
            return componentName;
        }

        public void setComponentName(String componentName) {
            this.componentName = componentName;
        }

        public Object getParams() {
            return params;
        }

        public void setParams(Object params) {
            this.params = params;
        }
    }
}
